﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PaymentApp
{
    /// <summary>
    /// 订单
    /// </summary>
    public class Order
    {
        protected IPayment payment;

        public void Pay(decimal amount)
        {
            payment.Pay(amount);
        }

        // 设置支付方式
         public void SetPayment(IPayment payment)
        {
            this.payment = payment;
        }
    }
}
